package com.jy.appmarket.network.resultdata;

/**
 * 类说明：
 * 
 * @author Terry.Lu
 * @date 2013-5-15
 * @version 1.0
 */
public abstract class BaseResultData {
//	private static final String TAG = "BaseResultData";
	protected static final String INFO_TAG = "info";

	private int mStatus;
	private String mMessage;
	private String mDataType;

	public int getStatus() {
		return mStatus;
	}

	public boolean isOK() {
		return mStatus == 200;
	}

	public void setStatus(int mStatus) {
		this.mStatus = mStatus;
	}

	public String getMessage() {
		return mMessage;
	}

	public void setMessage(String message) {
		this.mMessage = message;
	}

	public String getDataType() {
		return mDataType;
	}

	public void setDataType(String dataType) {
		this.mDataType = dataType;
	}

	public boolean parseData(final String result) {
		if (result == null) {
			return false;
		}
		return parseResult(result);
	}

	public abstract boolean parseResult(final String result);

}
